home *** CD-ROM | disk | FTP | other *** search
- Path: news.widomaker.com!sgross
- From: sgross@widomaker.com (Stephen Gross)
- Newsgroups: comp.lang.c
- Subject: question on borland c++ 3.1
- Date: 7 Feb 1996 05:07:04 GMT
- Organization: Widomaker Public Access Internet (804)221-8070
- Message-ID: <4f9c1o$aem@news2.widomaker.com>
- NNTP-Posting-Host: wilma.widomaker.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- I've been using bc 3.1 for a while now, and i was wondering if anyone can
- tell me: is this a bug with the compiler? The following code:
-
- void flip()
- {
- asm {
- cld
- lds si,[dword ptr V_PAGE]
- mov ax,0xa000
- mov es,ax
- mov di,0
- mov cx,32000
- rep movsw
- lds si,[dword ptr V_PAGE]
- mov ax,0
- mov cx,32000
- rep stosw
- }
- {
-
- it does not work, in that V_PAGE gets set to 0, right after the "rep
- movsw". Is the problem something stupid in my code, or in the compiler?
-
- thanx, sgross
-
-